package com.gamecode;

import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;

import com.gamecode.GCanvas;

public class GameActivity extends MIDlet {
	
	GCanvas gc;
	public GameActivity() {
		instance = this;
	}
	@Override
	protected void destroyApp(boolean unconditional) {
		
	}

	@Override
	protected void pauseApp() {
		
	}

	@Override
	protected void startApp() {
		if (gc == null)
			gc = new GCanvas(this);
		Display.getDisplay(this).setCurrent(gc);
	}
}